<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SL
 * All portions are Copyright (C) 2001-2006 Openbravo SL
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->

<html>
  <head>
    <title>Menu</title>
    <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Menu/Menu.css" title="StyleGrid" id="paramCSS" />
    <script language="JavaScript" type="text/javascript" id="paramDirection">
      var baseDirection = "../../../../../web/";
    </script>
	<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>    
	<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
    <script language="JavaScript" src="../../../../../web/js/menuWindows.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript" id="paramLanguage">LNG_POR_DEFECTO = "en_US";</script>
<script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" id="keyMap"></script>
<script type="text/javascript"> 
      //all dojo.require above this line
      dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
</script> 
    <script language="JavaScript" type="text/javascript">

      function resizeMenu() {
        var mnu = document.getElementById("Menu_Client");
        var mleft = document.getElementById("MenuLeft");
        var mright = document.getElementById("MenuRight");
        var mtop = document.getElementById("MenuTop");
        var mtop2 = document.getElementById("MenuTop2");
        var mbottom = document.getElementById("MenuBottom");
        var body = document.getElementsByTagName("BODY");
        var h = body[0].clientHeight;
        var w = body[0].clientWidth;
        var name = window.navigator.appName;
        mnu.style.height = h -(mtop.clientHeight + mtop2.clientHeight + mbottom.clientHeight) - ((name.indexOf("Microsoft")==-1)?2:0);
        mnu.style.width = w - (mleft.clientWidth + mright.clientWidth) - ((name.indexOf("Microsoft")==-1)?2:0);
        mnu.style.display = "";
      }

  function callback() {
    var strText = "";
    if (getReadyStateHandler(xmlreq,null,false)) {
      try {
        if (xmlreq.responseText) strText = xmlreq.responseText;
      } catch (e) {
      }
      //layer("returnText", strText, true, false);
      document.getElementById("alertCount").innerHTML=strText;
/*
      if (strText==0) {
        document.getElementById("alertNotifier").style.display="none";
      } else {
        document.getElementById("alertNotifier").style.display="";
        document.getElementById("alertCount").innerHTML=strText;
     }
*/
    }
    return true;
  }
  
  function updateData() {
    //var frm = document.frmTotalPedido;
    return submitXmlHttpRequest(callback, null, 'ALERT', "VerticalMenu.html", false);
  }
  
  function updateAlert()
  {
      updateData();
      setTimeout("updateAlert()", 50000);
  }

    </script>
  </head>

  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeMenu(); updateAlert();" onresize="resizeMenu();">
    <table border="0" cellspacing="0" cellpadding="0" summary="" width="100%" height="100%">
      <tr>
        <td rowspan="3" valign="top">
          <table class="Menu_ContentPane_Left" id="MenuLeft">
            <tr>
              <td class="Menu_NavBar_bg_left">
              </td>
            </tr>

            <tr>
              <td class="Menu_ToolBar_bg_left">
              </td>
            </tr>

            <tr>
              <td class="Menu_Client_bg_left">
              </td>
            </tr>

            <tr>
              <td class="Menu_Bottom_bg_left">
              </td>
            </tr>
          </table>
        </td>

        <td valign="top">
          <table class="Menu_ContentPane_NavBar" id="MenuTop">
            <tr>
              <td class="Menu_NavBar_bg">&nbsp;</td>

              <td class="Menu_NavBar_bg_logo_left"></td>

              <td class="Menu_NavBar_bg_logo" width="1"><img class="Menu_NavBar_logo" src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo"/></td>

              <td class="Menu_NavBar_bg_logo_right"></td>

              <td class="Menu_NavBar_bg">&nbsp;</td>
            </tr>
          </table>

          <table class="Menu_ContentPane_ToolBar Menu_ToolBar_bg" id="MenuTop2">
            <tr>
              <td width="1" class="Menu_ToolBar_textlabel_bg_left">
                <a class="Menu_ToolBar_Button" href="#" onclick="openServletNewWindow('DEFAULT', false, '../ad_forms/Role.html', 'ROLE', null, null, '460', '775');return true;" onmouseover="window.status='User info';return true;" onmouseout="window.status='';return true;"><img class="Menu_ToolBar_Button_Icon Menu_ToolBar_Button_Icon_user" src="../../../../../web/images/blank.gif" border="0" alt="User info" title="User info" /></a>
              </td>

              <td colspan="2" class="Menu_ToolBar_textlabel_bg_body"><nobr><a class="Menu_ToolBar_text_username" href="#" onclick="openServletNewWindow('DEFAULT', false, '../ad_forms/Role.html', 'ROLE', null, null, '460', '775');return true;"><span id="fieldUserName">xxKain Smitherson</span></a><nobr></td>

              <td width="1" class="Menu_ToolBar_textlabel_bg_right">
                <a class="Menu_ToolBar_Button" href="#" onclick="submitCommandForm('DEFAULT', false, null, '../security/Logout.html', '_top');return false;" onmouseover="window.status='Close session';return true;" onmouseout="window.status='';return true;"><img class="Menu_ToolBar_Button_Icon Menu_ToolBar_Button_Icon_logout" src="../../../../../web/images/blank.gif" onclick="submitCommandForm('DEFAULT', false, null, '../security/Logout.html', '_top');return false;" border="0" alt="Close session" title="Close session" /></a>
              </td>

              <td class="Menu_ToolBar_Space"></td>

              <td width="1">
                <a class="Menu_ToolBar_Button" id="fieldDesplegar" href="#" onclick="submitCommandForm('ALL', false, null, 'VerticalMenu.html', '_self');return false;" onmouseover="window.status='Expand the menu';return true;" onmouseout="window.status='';return true;"><img class="Menu_ToolBar_Button_Icon Menu_ToolBar_Button_Icon_expand" src="../../../../../web/images/blank.gif" onclick="submitCommandForm('ALL', false, null, 'VerticalMenu.html', '_self');return false;" border="0" alt="Expand the menu" title="Expand the menu" /></a>

                <a class="Menu_ToolBar_Button" id="fieldContraer" href="#" onclick="submitCommandForm('DEFAULT', false, null, 'VerticalMenu.html', '_self');return false;" onmouseover="window.status='Contract all the menu';return true;" onmouseout="window.status='';return true;"><img class="Menu_ToolBar_Button_Icon Menu_ToolBar_Button_Icon_contract" src="../../../../../web/images/blank.gif" onclick="submitCommandForm('DEFAULT', false, null, 'VerticalMenu.html', '_self');return false;" border="0" alt="Contract all the menu" title="Contract all the menu" /></a>
              </td>
            </tr>

            <tr>
              <td width="1" class="Menu_ToolBar_textlabel_bg_left">
                <a class="Menu_ToolBar_Button" href="../ad_forms/AlertManagement.html" target="frameAplicacion" onmouseover="window.status='Alert Management';return true;" onmouseout="window.status='';return true;"><img src="../../../../../web/images/blank.gif" class="Menu_ToolBar_Button_Icon Menu_ToolBar_Button_Icon_alert" border="0" alt="Alert" title="Alert" /></a>
              </td>

              <td class="Menu_ToolBar_textlabel_bg_body"><nobr><span id="alertNotifier"><a href="../ad_forms/AlertManagement.html" target="frameAplicacion" class="Menu_ToolBar_text_alert"><span class="Menu_ToolBar_text_alert_no" id="alertCount">0</span><span>&nbsp;</span>Alerts</a></span></nobr></td>

              <td width="1"><img class="Menu_ToolBar_textlabel_bg_right" src="../../../../../web/images/blank.gif" border="0" /></td>

              <td width="1">
              </td>

              <td class="Menu_ToolBar_Space"></td>

              <td width="1">
              </td>
            </tr>

          </table>
        </td>

        <td rowspan="3" valign="top">
          <table class="Menu_ContentPane_Right" id="MenuRight">
            <tr>
              <td class="Menu_NavBar_bg_right">
              </td>
            </tr>

            <tr>
              <td class="Menu_ToolBar_bg_right">
              </td>
            </tr>

            <tr>
              <td class="Menu_Client_bg_right">
              </td>
            </tr>

            <tr>
              <td class="Menu_Bottom_bg_right">
              </td>
            </tr>
          </table>
        </td>
      </tr>

      <tr>
        <td valign="top">
          <div id="Menu_Client" class="Menu_ContentPane_Client" style="overflow: auto; display: none;">
            <table cellspacing="0" cellpadding="0" id="paramMenu" class="Menu_Client_bg">
            </table>
          </div>
        </td>
      </tr>

      <tr>
        <td valign="top">
          <table class="Menu_ContentPane_Bottom" id="MenuBottom">
            <tr>
              <td class="Menu_Bottom_bg">
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>

    <form name="frmMenu" action="../security/Login_FS.html" method="POST" target="_top">
      <input type="hidden" name="Command" /> <input type="hidden" name="inpSelected" value="" />
    </form>
  </body>
</html>
